package List;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedList;

public class ListTest {
    public static void main(String[] args) {
//        ArrayList<Integer> list = new ArrayList<>();
//        list.ensureCapacity(16);
//        System.out.println(list.indexOf(2));
        LinkedList<Student> students = new LinkedList<>();
        students.add(new Student(1,"lihua"));
        students.add(new Student(2,"lihua"));
        System.out.println(students.size());

    }
}
